<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改批处理计划')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-scheduletask-edit" th:object="${databandScheduletask}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">任务类型：</label>
                <div class="col-sm-8">
                    <select name="jobtype" class="form-control m-b" required>
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">任务关键key，任务实例id：</label>
                <div class="col-sm-8">
                    <input name="jobcode" th:field="*{jobcode}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">bean名称，只在java型任务有效：</label>
                <div class="col-sm-8">
                    <input name="beaname" th:field="*{beaname}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">方法名称，只在java型任务有效：</label>
                <div class="col-sm-8">
                    <input name="methodname" th:field="*{methodname}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">方法参数，只在java型任务有效：</label>
                <div class="col-sm-8">
                    <input name="methodparams" th:field="*{methodparams}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">任务描述：</label>
                <div class="col-sm-8">
                    <input name="descri" th:field="*{descri}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">cron任务表达式：</label>
                <div class="col-sm-8">
                    <input name="cron" th:field="*{cron}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">扩展字段：</label>
                <div class="col-sm-8">
                    <textarea name="ext" class="form-control">[[*{ext}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">成功 1 是 0 否：</label>
                <div class="col-sm-8">
                    <div class="radio-box">
                        <input type="radio" name="status" value="" required>
                        <label th:for="status" th:text="未知"></label>
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">成功 1 是 0 否：</label>
                <div class="col-sm-8">
                    <input name="startflag" th:field="*{startflag}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "web/scheduletask";
        $("#form-scheduletask-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-scheduletask-edit').serialize());
            }
        }
    </script>
</body>
</html>